package model;

// Generated Jun 9, 2011 1:02:18 PM by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TesteVariante generated by hbm2java
 */
@Entity
@Table(name = "teste_variante", catalog = "mydb")
public class TesteVariante implements java.io.Serializable {

	private Integer variantaId;
	private Teste teste;
	private Date data;
	private Integer asistatId;

	public TesteVariante() {
	}

	public TesteVariante(Teste teste) {
		this.teste = teste;
	}

	public TesteVariante(Teste teste, Date data, Integer asistatId) {
		this.teste = teste;
		this.data = data;
		this.asistatId = asistatId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "varianta_id", unique = true, nullable = false)
	public Integer getVariantaId() {
		return this.variantaId;
	}

	public void setVariantaId(Integer variantaId) {
		this.variantaId = variantaId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "Teste_test_id", nullable = false)
	public Teste getTeste() {
		return this.teste;
	}

	public void setTeste(Teste teste) {
		this.teste = teste;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "data", length = 19)
	public Date getData() {
		return this.data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	@Column(name = "asistat_id")
	public Integer getAsistatId() {
		return this.asistatId;
	}

	public void setAsistatId(Integer asistatId) {
		this.asistatId = asistatId;
	}

}
